package OOday01;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/6 15:54
 */
public class Teacher extends Person{
    double salary;
    Teacher(){

    }
    Teacher(double salary,String name,int age,String address){
        this.salary=salary;
        this.address=address;
        this.age=age;
        this.name=name;
    }
    void teach(){
        System.out.println(name+"正在讲课");
    }
}
